				<?php
                		$tblBane = new Zendvn_Models_Advert();
						$bane = $tblBane->listItem($this->arrParam,array('task'=>'public'));
                		if (!empty($bane)){       		
	                		foreach ($bane as $key =>$val){
	                			if($position == $val['position_name']){
	                				$name = $val['name'];
		                			if(!empty($val['picture'])){
		                				if($val[type] == 0){
		                					$linkImg	= FILES_URL . '/adverts/orignal/' . $val['picture'];
					                    	$picture 	= '<img src="'. $linkImg .'" width="470" alt="'.$name.'" />';
		                				}elseif ($val[type] == 1) {
		                					$linkImg	= FILES_URL . '/flashs/' . $val['picture'];
					                    	include 'flash.php';
		                				}
					                    
					                }else{
					                    $linkImg	= FILES_URL . '/adverts/images450x450/no-image.jpg';
					                    $picture 	= '<img src="'. $linkImg .'" width="470" alt="'.$name.'" />';
					                }				                
	                				if(empty($val['url'])){
		                			$lang = $this->arrParam['lang'];
									 if(empty($lang)){
									    $lang = 'vi';
									}else{
									    $lang = $this->arrParam['lang'];
									}
	                				$urlOptions = array('module'=>'news','controller'=>'index',
																		'action'=>'advert',
																		'id'=>$val['id'],
																		'title'=>$val['alias'],
					                    								'lang'=>$lang);
					                 $linkDetail = $this->url($urlOptions,'advert-detail');
				                }else{
				                	$linkDetail = $val['url'];
				                }
                	?>
	                	<a  href="<?php echo $linkDetail?>">
	                    	<?php echo $picture?>
	                    	<a target="_blank" class="link-advert" href="<?php echo $linkDetail?>"></a>
		               	</a>
                    <?php 
                				}
                			}
                		}
                	?>
                		
                		